package com.xbfinal.eduservice.controller;

import com.xbfinal.commonUtils.Result;
import com.xbfinal.eduservice.client.VodClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Title: testController
 * @Author 笑霸fianl
 * @Package com.xbfinal.eduservice.controller
 * @Date 2023/2/26 14:51
 * @描述: 测试用
 */
@Slf4j
@RestController
@RequestMapping("test")
public class testController {

    //注入vodClient
    @Autowired
    private VodClient vodClient;


    @GetMapping("hello")
    public Result hello(){
        Result hello = vodClient.hello();
        return hello;
    }
}
